package cn.legend.travel.admin.authorize.dao.persist.repository;

import cn.legend.travel.admin.authorize.pojo.entity.Role;
import cn.legend.travel.admin.authorize.pojo.param.RoleAddNewParam;
import cn.legend.travel.admin.authorize.pojo.param.RoleUpdateParam;
import cn.legend.travel.admin.authorize.pojo.vo.RoleAndPermissionVO;
import cn.legend.travel.admin.authorize.pojo.vo.RoleStandardVO;

import java.util.List;

public interface IRoleRepository {

    RoleStandardVO getRoleById(Long roleId);

    List<RoleAndPermissionVO> getAll();

    int addNew(RoleAddNewParam param);

    int update(RoleUpdateParam param);

    int delete(Long roleId);

    Role getRoleByName(String name);
}
